# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=firstexecution
pkgver=6.a275793
pkgrel=3
groups=('blackarch' 'blackarch-exploitation')
pkgdesc='A Collection of different ways to execute code outside of the expected entry points.'
arch=('any')
url='https://github.com/nccgroup/firstexecution'
license=('GPL3')
makedepends=('git')
source=("git+https://github.com/nccgroup/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  cp -a WindowsPENative "$pkgdir/usr/share/$pkgname/WindowsPENative"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

